package org.jeecg.modules.basic.plant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 仓库和sap库位对照信息
 * @Author: jeecg-boot
 * @Date: 2023-10-16
 * @Version: V1.0
 */
@Data
@TableName("wms_sap_warehouse_map")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "wms_sap_warehouse_map对象", description = "仓库和sap库位对照信息")
public class WmsSapWarehouseMap implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "org_code")
    private String sysOrgCode;
    /**
     * 仓库编码
     */
    @Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    private String wmsBasicWarehouseCode;

    @TableField(exist = false)
    private String wmsBasicWarehouseName;
    /**
     * 仓库id
     */
    @Excel(name = "仓库id", width = 15)
    @ApiModelProperty(value = "仓库id")
    @Dict(dictTable = "wms_basic_warehouse", dicText = "name", dicCode = "id")
    private String wmsBasicWarehouseId;
    /**
     * sap库位
     */
    @Excel(name = "sap库位", width = 15)
    @ApiModelProperty(value = "sap库位")
    private String sapLocation;
    /**
     * 对应厂区
     */
    @Excel(name = "对应厂区", width = 15)
    @ApiModelProperty(value = "对应厂区")
    @Dict(dicCode = "warehouse_plant_area")
    private String plantArea;
    /**
     * 状态
     */
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "is_open")
    private String state;

    /**
     * 组织
     */
    @Excel(name = "组织", width = 15)
    @ApiModelProperty(value = "组织")
    private String organization;

    /**
     * sap类型
     */
    @Excel(name = "sap类型", width = 15)
    @ApiModelProperty(value = "sap类型")
    @Dict(dicCode = "sap_type")
    private String type;

    /**
     * SAP工厂
     */
    @Excel(name = "SAP工厂", width = 15)
    @ApiModelProperty(value = "SAP工厂")
    private String factory;
}
